//
//  CollectionViewNormalCell.swift
//  DouYuZB
//
//  Created by 刘耀 on 2017/4/12.
//  Copyright © 2017年 深圳多诺信息科技有限公司. All rights reserved.
//

import UIKit

class CollectionViewNormalCell: UICollectionViewCell {
    
    // MARK: - 控件属性
    
    @IBOutlet weak var iconImageView: UIImageView!
    
    @IBOutlet weak var descLabel: UILabel!
    
    @IBOutlet weak var titleLabel: UILabel!
    
    var anchor: AnchorModel? {
        didSet {
            guard let anchor = anchor else { return }
            iconImageView.kf.setImage(with: URL(string: anchor.vertical_src), placeholder: UIImage(named: "Img_default"))
            descLabel.text = anchor.room_name
            titleLabel.text = anchor.nickname
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

}
